Processor

inner class Processor : ResultArg<V, R>

A ResultArg that calls a provided result consumer when the arg is applied. This is used in multi-arg result processing

Author

fzzyhmstrs

Since

0.5.3

Parameters

V

the value type received by this arg for processing

R

the result type provided by processing

consumer

Consumer<R> called when this arg is successfully applied to an input. The result of the arg processing is passed into the consumer.

Functions

Link copied to clipboard
open override fun applyArg(scopeValue: V, argValue: String): R

Applies the parsed arg value to a scoped config value and returns the processing result

Link copied to clipboard
fun to(consumer: Consumer<R>): ResultArg.Processor<V, R>

Converts this ResultArg into a Processor of the same type that calls the provided consumer.